import Vue from 'vue'
import Router from 'vue-router'
//import HelloWorld from '@/components/HelloWorld'
//处方抓药订单
import RecipeOrder from '@/pages/RecipeOrder';
//医生列表
import DoctorItems from '@/pages/DoctorItems';
//用户中心
import UserHome from '@/pages/UserHome';

//商品列表
import ProductItems from '@/pages/ProductItems';
//商品详情
import ProductShow from '@/pages/ProductShow';
//购物车
import ShopCart from '@/pages/ShopCart';

Vue.use(Router)

export default new Router({
    routes: [
        {
            path: '/',
            name: 'RecipeOrder',
            component: RecipeOrder
        }, {
            path: '/doctor-items',
            name: 'DoctorItems',
            component: DoctorItems
        }, {
            path: '/user-home',
            name: 'UserHome',
            component: UserHome
        }, {
            path: '/product-items',
            name: 'ProductItems',
            component: ProductItems
        }, {
            path: '/product-show',
            name: 'ProductShow',
            component: ProductShow
        }, {
            path: '/shop-cart',
            name: 'ShopCart',
            component: ShopCart
        }
    ]
})
